Smart cities with traffic management systems